package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.sql.Types;
import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_jieshi_build", autoSave = true)
public class LogJieShiBuild {

    @FieldTypeAnnotation(desc = "活动Id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "街市等级")
    private int level;

    @FieldTypeAnnotation(desc = "建筑信息", sqlType = Types.LONGVARCHAR)
    private String buildInfo;

    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogJieShiBuild(int activityId, long userId, int level, String buildInfo) {
        this.activityId = activityId;
        this.userId = userId;
        this.level = level;
        this.buildInfo = buildInfo;
        this.time = new Date();
    }
}
